package com.examsystem.dao;

import com.examsystem.pojo.UserPaper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author fire'ge
 */
@Mapper
public interface UserPaperMapper {

    /*
    学生端
     */


    /**添加一个UserPaper
     * @param userPaper 传入userPaper类
     * @return int
     */
    int addUserPaper(UserPaper userPaper);
    /**根据id删除一个UserPaper
     * @param id 传入id
     * @return int
     */
    int deleteUserPaperById(int id);

    /**更新UserPaper
     * @param userPaper 传入userPaper类
     * @return int
     */
    int updateUserPaper(UserPaper userPaper);


    /**根据id查询,返回一个UserPaper
     * @param id 传入id
     * @return int
     */
    UserPaper queryUserPaperById(int id);
    /**查询全部UserPaper,返回list集合
     * @return List<UserPaper>
     */
    List<UserPaper> queryAllUserPaper();





}
